import Vue from 'vue'
import './style.css'
import App from './App.vue'
import router from './router'
import store from './store'
import '@/assets/text/text.css'
import * as filters from '@/filters'
import GlobalMixins from '@/utils/globalMixin'
import VueGtm from 'vue-gtm';
import { initAdjust } from './services/adjust';

initAdjust();
// filters
Object.keys(filters).forEach((key) => {
  Vue.filter(key, filters[key])
})
Vue.mixin(GlobalMixins)

Vue.use(VueGtm, {
  id: 'GTM-KRZ3QZ8M', // 替换为你的 GTM ID
  enabled: (process.env.NODE_ENV == 'production'), // 只在生产环境启用 GTM
  debug: false, // 开启调试模式以查看控制台输出
  vueRouter: router, // 自动推送页面视图事件到 GTM
  loadScript: true, // 自动加载 GTM 脚本
});
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
